.homeContainer {
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
}

.topSection {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 2rem 4rem;
  position: relative;

  @media (max-width: 768px) {
    flex-direction: column;
    padding: 1rem 2rem;
    gap: 2rem;
  }
}

.terminalWrapper {
  flex: 1;
  max-width: 60%;

  @media (max-width: 768px) {
    max-width: 100%;
  }
}

.themeToggleWrapper {
  position: sticky;
  top: 2rem;
  z-index: 10;

  @media (max-width: 768px) {
    position: static;
    align-self: flex-end;
  }
}

.mainContent {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;

  @media (max-width: 768px) {
    padding: 2rem 1rem;
  }
}

.heroSection {
  text-align: center;
  max-width: 800px;
  width: 100%;
}

.titleContainer {
  margin-bottom: 4rem;

  @media (max-width: 768px) {
    margin-bottom: 3rem;
  }
}

.mainTitle {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.5rem 0;
  background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: background 0.3s ease;

  @media (max-width: 768px) {
    margin-bottom: 1rem;
  }
}

.greeting {
  display: block;
  font-size: 0.6em;
  font-weight: 400;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.name {
  display: block;
  font-family: 'YouSheBiaoTiHei', serif;
  text-shadow: 0 0 30px rgba(217, 192, 141, 0.3);
}

.subtitle {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--color-text);
  opacity: 0.8;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  transition: color 0.3s ease;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 4rem;

  @media (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
  }
}

.feature {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(217, 192, 141, 0.2);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55), background 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.15),
    inset 0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 -1px 2px rgba(255, 255, 255, 0.1);

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
    transform: scaleX(0);
    transition: transform 0.3s ease, background 0.3s ease;
  }

  &:hover {
    transform: translateY(20px) scale(0.92);
    border-color: rgba(217, 192, 141, 0.4);
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.4),
      0 1px 4px rgba(0, 0, 0, 0.3),
      inset 0 6px 12px rgba(0, 0, 0, 0.2),
      inset 0 -2px 4px rgba(255, 255, 255, 0.05);

    &::before {
      transform: scaleX(1);
    }

    .featureIcon {
      transform: scale(0.95) rotate(-2deg);
    }
  }

  @media (max-width: 768px) {
    padding: 1.5rem 1rem;
  }
}

.featureIcon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  @media (max-width: 768px) {
    font-size: 2.5rem;
  }
}

.feature h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem 0;
  font-family: 'YouSheBiaoTiHei', serif;
  transition: color 0.3s ease;
}

.feature p {
  font-size: 1rem;
  color: var(--color-text);
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
  transition: color 0.3s ease;
}

/* 深色主题适配 */
[data-theme='dark'] .homeContainer {
  transition: background 0.3s ease;
}

[data-theme='dark'] .feature {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(217, 192, 141, 0.2);
  transition: background 0.3s ease, border-color 0.3s ease;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.5),
    0 10px 20px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 -1px 2px rgba(255, 255, 255, 0.08),
    0 0 15px rgba(217, 192, 141, 0.05);
}

[data-theme='dark'] .feature:hover {
  border-color: rgba(217, 192, 141, 0.5);
  background: rgba(0, 0, 0, 0.4);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.8),
    0 0 2px rgba(0, 0, 0, 0.6),
    inset 0 8px 16px rgba(0, 0, 0, 0.6),
    inset 0 -3px 6px rgba(255, 255, 255, 0.08),
    0 0 20px rgba(217, 192, 141, 0.1);
}